<div class="swiper-container swiper-container1 nav_erji">
    <ul class="swiper-wrapper">
        <li class="swiper-slide"><a class="on_erji" href="{:url('index/xwzx/index')}" title="连骏资讯">连骏资讯</a></li>
        <li class="swiper-slide"><a href="{:url('index/xwzx/hydt')}" title="行业动态">行业动态</a></li>
    </ul>
</div>
<script>
	$(function(){
		var num = $('.nav_erji li').length;
		if($(window).width()<=750){
			num = 2;
		}
		$('.nav_erji').width(num*$('.nav_erji li').width());
		var swiper1 = new Swiper('.swiper-container1', {
			slidesPerView : num,
		});
	})
</script>